import request from '@/utils/axios/index.js'
const api_name = '/system/menu';
export const getMenus = ()=>{
    return request.get({
        url:`${api_name}/menuList`
    })
}

export const saveMenuApi = data=>{
    return request.post({
        url:`${api_name}/save`,
        data
    })
}

export const deleteMenuApi = id=>{
    return request.get({
        url:`${api_name}/delete/${id}`
    })
}